]> dgit.raspbian.org Git - gnome-shell.git/commit
swipeTracker: Immediately flip delta in RTL locales
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 20 Nov 2025 15:09:44 +0000 (16:09 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 20 Nov 2025 15:09:44 +0000 (16:09 +0100)
commita02835aacadbc14dc4350add3bae99c70e38f1b0
tree3f6ccdd2e29f3ac4a191da2febccd5bd9b7a86d0
parent799a842d3a11b9d0df0e69d2d6a07ce66f926ba2
swipeTracker: Immediately flip delta in RTL locales

The delta is currently flipped in a shared code path, after appending
the unmodified value to the event history. As a result, the calculated
final velocity for touchpad gestures is wrong in RTL locales.

Fix this by modifying the delta immediately when handling the events,
so that all other code operates on the correct values.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8840
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3967>
js/ui/swipeTracker.js